package com.jinly.ryder.account.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jinly.ryder.common.auth.model.AuthRole;
import com.jinly.ryder.common.auth.model.AuthType;
import com.jinly.ryder.common.dao.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_auth")
public class UserAuthDO extends BaseDO {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 权限类型
     */
    @TableField(value = "auth_type")
    private AuthType authType;

    /**
     * 权限数据
     */
    @TableField(value = "auth_data")
    private String authData;

    /**
     * 权限角色
     */
    @TableField(value = "auth_role")
    private AuthRole authRole;

}
